<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe6b7;</div>
    </div>
    <div class="header-middle">
      <span class="iconfont">&#xe7d4;</span>
      内容
    </div>
    <router-link tag="div" to="/City">
      <div class="header-right">{{this.$store.state.city}}</div>
    </router-link>
  </div>
</template>
<script>
export default {
  name: 'HomeHeader'
}
</script>
<style lang="stylus" scoped>
@import '~@/assets/styles/varibles.styl'
// 1rem = html font-size = 50px
  .back-icon
    color red
  .header
    display flex
    line-height .86rem
    background-color $bgColor
    color #fff
    .header-left
      width .64rem
      float left
      .back-icon
        text-align center
        font-size .4rem
        color #fff
    .header-middle
      flex 1
      background #fff
      border-radius .1rem
      margin-top .12rem
      margin-left .2rem
      color #ccc
      height .64rem
      line-height .64rem
    .header-right
      width 1.24rem
      float right
      text-align center
</style>
